package com.example.sfm.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sfm
 * @since 2025-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("teachers")
@Schema(name="Teachers对象",description = "教师信息表")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Teachers implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "教师ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "关联的用户ID")
    private Integer userId;

    @Schema(description = "教师编号")
    private String teacherNumber;

    @Schema(description = "教师姓名")
    private String teacherName;

    @Schema(description = "所属学院")
    private String department;

    @Schema(description = "职称（如讲师、副教授、教授）")
    private String title;

    @Schema(description = "研究方向")
    private String researchArea;

    @Schema(description = "办公电话")
    private String officePhone;

    @Schema(description = "办公室地址")
    private String officeLocation;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;


}
